package com.hanhan.chargingpile.sms.client;

import com.hanhan.chargingpile.sms.client.fallback.CoreUserInfoClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "SERVICE-USER", fallback = CoreUserInfoClientFallback.class)
public interface CoreUserInfoClient {

    @GetMapping("/api/user/appUser/checkTel/{tel}")
    boolean checkMobile(@PathVariable("tel") String tel);
}
